{% extends "base.html" %}
{% block content %}
<ul class="topics">
    {% if not topics %}
        <p>Nobene teme še ni v forumu! <a href="/forum/topic/new">Bi jo mogoče ti?</a> </p>
    {% endif %}
    {% for topic in topics %}
    <li class="topic">
        <h2><a href="/forum/topics/{{topic.id}}">{{topic.title}}</a>({{topic.posts}})</h2>
        <span class="author">{{topic.author}} @ {{topic.date_modified}}</span>
    </li>
    {% endfor %}
</ul>
{% endblock %}
